package com.tool.creatBean;

import java.util.HashMap;
import java.util.LinkedList;
import java.util.List;
import java.util.Map;

public class TableInfo {

    private String tablename;
    private String describe;
    private Map<String, String> keys = new HashMap<>();
    private String id;
    private List<Column> colList = new LinkedList<>();
    private Column idColumn = new Column();


    public Map<String, String> getKeys() {
        return keys;
    }

    public void putKeys(String key, String type) {
        this.keys.put(key, type);
    }


    public void addCol(Column column) {
        this.colList.add(column);
    }

    public List getColList() {
        return this.colList;
    }

    public String getTablename() {
        return tablename;
    }

    public void setTablename(String tablename) {
        this.tablename = tablename;
    }

    public String getDescribe() {
        return describe;
    }

    public void setDescribe(String describe) {
        this.describe = describe;
    }

    public Column getIdColumn() {
        return idColumn;
    }

    public void setIdColumn(Column idColumn) {
        this.idColumn = idColumn;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }
}
